<?php
extract($_REQUEST);
$data = include './data.txt';
if(isset($data[$username])) exit('please other username.');
$data[$username] = $username ;

file_put_contents('./data.txt',"<?php return ".var_export($data,TRUE)." ?>");
echo 'success';
?>